{template header}
<h4 style="padding-left:10px;;">详情 <i class="icon-search"></i></h4>
<div class="bs-docs-example pt-20" style="clear:both;">
    <table class="table table-striped">
        <thead>
            <tr>
                <th>天气</th>
                {loop $titles $title}
                <th>{$title}</th>
                {/loop}
                <th>跑步占比</th>
            </tr>
        </thead>
        <tbody>
            {loop $todayReport $weather $values}
            {if $weather == $weatherName}
            <tr>
                <td>{$weather}</td>
                {loop $values $name $v}
                {if $name != 'cities'}
                <td>今日：{$v['value']}，趋势：{$v['thread']}%</td>
                {/if}
                {/loop}
                <td>{eval echo number_format($values['runningData_city']['value']*100/$runningData_sum[$_weather])}%</td>
            </tr>
            {/if}
            {/loop}
        </tbody>
    </table>
    <h2>城市</h2>
    <div>
        {loop $todayReport $weather $value}
        {if $weather == $weatherName}
            {loop $value $name $v}
            {if $name == 'cities'}
                {loop $v $city}
                    <a href="?c=admin&a=cityReport&city={$city}">{$city}</a>,
                {/loop}
            {/if}
            {/loop}
        {/if}
        {/loop}
    </div>
</div>
{template footer}